package com.neo.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.genid.GenId;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author: hredis
 * @Date: 2020/10/24 18:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Table(name = "tbl_employee")
public class Employee {

    /*@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)*/
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String lastName;
    private String email;
    private String gender;
    private Integer age;
}
